package code.创建型模式.FactoryMethod.demo2.NumberFactory;

import java.math.BigDecimal;

/**
 * @author guanyuan.wu.sz
 * @since 2022/6/21
 */
public class NumberFactoryImpl implements NumberFactory {
    @Override
    public Number parse(String s) {
        return new BigDecimal(s);
    }
}
